package com.nabi.library.contents.elements.text
{
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFieldType;

	public class TextFieldFactory
	{
		public function TextFieldFactory()
		{
			throw new Error("Static Class.");
		}
		
		static public function createHorizontalTextField($isInput:Boolean = false): TextField
		{
			var result:TextField = new TextField();
			result.selectable = false;
			result.border = false;
			result.borderColor = 0x00FF00;
			result.embedFonts = true;
			result.autoSize = TextFieldAutoSize.LEFT;
			if($isInput) result.type = TextFieldType.INPUT;
			else result.type = TextFieldType.DYNAMIC;
			result.alwaysShowSelection = true;
			result.mouseWheelEnabled = false;
			result.useRichTextClipboard = true;
			
			return result;
		}
		
		static public function CreateVerticalTextField($isInput:Boolean = false): TextField
		{
			var result:TextField = new TextField();
			
			return result;
		}
	}
}